package com.imu.purse.modules.trade.entity;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import com.imu.core.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 私募
 * @author sunhongwei
 * @email sunhongwei@jshijian.com
 * @date 2018-04-11 13:52:48
 * Copyright (c) 2017 武汉亨鲜科技 版权所有 
 * eco refrean aloha CO.,LTD. All Rights Reserved. 
 */
@Data
@Table(name = "imu_grade_info")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class GradeInfoEntity extends BaseEntity
{
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="id")
	private Long id;
	
	//用户ID
	@Column(name="user_id")
	private Long userId;
	
	//购买数
	@Column(name="hbc")
	private BigDecimal hbc;
	
	//剩余数
	@Column(name="imu")
	private BigDecimal imu;

	//支付金额
	@Column(name="CURR_GRADE")
	private BigDecimal currGrade;

	//支付易买包数量
	@Column(name="NOW_GRADE")
	private BigDecimal nowGrade;

	//类型0贝壳
	@Column(name="type")
	private Integer type;
	
	//创建时间
	@Column(name="time_create")
	private Date timeCreate;
	
	//更新时间
	@Column(name="time_update")
	private Date timeUpdate;
}
